package com.quick.common.core.event;

import org.springframework.context.ApplicationEvent;

/**
 * 数据权限事件
 *
 * @Author: Administrator
 * @Date: 2023/8/11
 */
public class DataScopeEvent extends ApplicationEvent {
    /**
     * 目标参数（作为校验值）
     */
    private final Object target;
    /**
     * 数据类型 （部门数据、用户数据）
     */
    private final String service;

    public DataScopeEvent(Object source, Object target, String service) {
        super(source);
        this.target = target;
        this.service = service;
    }

    public Object getTarget() {
        return target;
    }

    public String getService() {
        return service;
    }
}
